package com.shell.arouter.demo.arouter;

import com.durian.app.lifecycle.annotation.RouterName;
import com.durian.app.lifecycle.annotation.RouterPath;
import com.durian.app.lifecycle.annotation.RouterService;
import com.durian.base.frame.easyrouter.EasyRouter;

/**
 * 说明：XRouter
 * <p/>
 * 作者：fanly
 * <p/>
 * 类型：Class
 * <p/>
 * 时间：2019-06-21 17:36
 * <p/>
 * 版本：version 1.0
 */
public class XRouter {

    public interface Extra{
        int NEED_LOGIN = 1;//是否需要登录
    }

    /**
     * 拦截器权限定义
     */
    public interface Interceptor{
        int login = 10;//登录
    }

    /**
     * login module
     */
    @RouterName("LoginRouter")
    public static class Login{
        @RouterPath()
        public static final String page_login = "/login/login";
    }


    /**
     * user module
     */
    @RouterName("UserRouter")
    public static class User{

        public static final String fragment_user_center = "/center/center";
        @RouterPath(fragment = fragment_user_center,transfer = {"abc","123"})
        public static final String user_center = EasyRouter.PATH_BIND_FRAGMENT;

        @RouterPath(params = {"id"})
        public static final String user_contacts = "/user/contacts";

        @RouterService(serviceName = "com.shell.arouter.demo.arouter.IUserService",methodName = "getUserService")
        public static final String service_user = "/service/user";
    }


}
